package com.yudean.esb.dao.erp;

import com.yudean.esb.domain.erp.ErpIdsApContractInt;
import com.yudean.esb.mapper.erp.ErpIdsApContractIntMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
@Scope("prototype")
public class ErpIdsApContractIntDao {

    @Resource
    public ErpIdsApContractIntMapper erpIdsApContractIntMapper;

    public int insertSelective(ErpIdsApContractInt record) {
        return erpIdsApContractIntMapper.insertSelective(record);
    }

    public int batchInsertErpIdsApContractIntData(List<ErpIdsApContractInt> erpIdsApContractIntList) {
        return erpIdsApContractIntMapper.batchInsertErpIdsApContractIntData(erpIdsApContractIntList);
    }

    public int deleteErpIdsApContractIntByControlId(long controlId) {
        return erpIdsApContractIntMapper.deleteErpIdsApContractIntByControlId(controlId);
    }
}
